﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using iLangl.Transport.Communication;
using iLangl.BusinessModel.Actions;
using iLangl.Transport;
using iLangl.BusinessModel.Managers;

namespace iLangl.Tests.TPActions
{
	[TestClass]
	public class GetProductsTest : BaseTest
	{

		[TestMethod]
		public void GetProductsT()
		{
			SwitchToILanglSideForTP();
			
			GetProducts products = new GetProducts();
			//Languagewire CompanyId 
			ActionManager.Instance.PrepareAction(TestSettings.LanguageWireCompanyId, products);
			
			products.Execute();

			Assert.IsNotNull(products.Products);

			Assert.IsTrue(products.Products.Count > 0);
		}
	}
}
